package com.kingyun.gpsinspection.purificationservice.dao.mapper.jsm;


import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.ReportTempHead;

import java.util.List;
import java.util.Map;

public interface ReportTempHeadMapper {
    int deleteByPrimaryKey(String headId);

    int insert(ReportTempHead record);

    int insertSelective(ReportTempHead record);

    ReportTempHead selectByPrimaryKey(String headId);

    int updateByPrimaryKeySelective(ReportTempHead record);

    int updateByPrimaryKey(ReportTempHead record);

    /**
     * 根据层级和模板id查询表头
     * @param map
     * @return
     */
    List<ReportTempHead> queryHeadsByIdAndLevel(Map map);

    /**
     * 根据模板id删除表头信息
     * @param reportTempId
     * @return
     */
    int deleteByTempId(String reportTempId);
}